
AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir}

if AUTO_EXAMPLES
bin_PROGRAMS = ConvertibleBonds
TESTS = ConvertibleBonds$(EXEEXT)
else
noinst_PROGRAMS = ConvertibleBonds
endif
ConvertibleBonds_SOURCES = ConvertibleBonds.cpp
ConvertibleBonds_LDADD = ../../ql/libQuantLib.la ${BOOST_THREAD_LIB}

EXTRA_DIST = \
    CMakeLists.txt \
    ConvertibleBonds.dev \
    ConvertibleBonds_vc8.vcproj \
    ConvertibleBonds_vc9.vcproj \
    ConvertibleBonds.vcxproj \
    ConvertibleBonds.vcxproj.filters \
    ReadMe.txt

.PHONY: examples check-examples

examples: ConvertibleBonds$(EXEEXT)

check-examples: examples
	./ConvertibleBonds$(EXEEXT)

dist-hook:
	mkdir -p $(distdir)/bin
	mkdir -p $(distdir)/build

